package com.campus.api.util;

public class UserContext {

    private static final ThreadLocal<Integer> t1 = new ThreadLocal<>();

    public static void setUserId(int userId) {
        t1.set(userId);
    }

    public static int getUserId() {
        return t1.get();
    }

    public static void removeUserId() {
    	t1.remove();
    }
}
